package com.test.shiro.service.impl;

import com.test.shiro.domain.UserRoleRepository;
import com.test.shiro.entity.UserRole;
import com.test.shiro.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    private UserRoleRepository userRoleRepository;
    @Override
    public List<UserRole> findByUid(Integer uid) {
        return userRoleRepository.findByUid(uid);
    }
}
